package com.ruoyi.edu.api.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.TreeEntity;
import lombok.EqualsAndHashCode;

/**
 * 课程类别对象 edu_subject
 *
 * @author isahino
 * @date 2023-09-14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("edu_subject" )
public class EduSubject extends TreeEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 类别编号
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 名称
     */
    @Excel(name = "名称" )
    private String title;

    /**
     * 排序
     */
    @Excel(name = "排序" )
    private Integer sort;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModified;

}
